﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="wucNews.ascx.cs" Inherits="Modules_WebsiteFrontEnd_wucNews" %>
<%@ Register Src="../Common/wucNewsToolbar.ascx" TagName="wucNewsToolbar" TagPrefix="uc1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="wucNewsList.ascx" TagName="wucNewsList" TagPrefix="uc2" %>
<%@ Register Src="wucNewsDetail.ascx" TagName="wucNewsDetail" TagPrefix="uc3" %>
<asp:UpdatePanel ID="UpdatePanel" runat="server">
    <ContentTemplate>
        <table border="0" cellpadding="0" cellspacing="0" width="800px">
            <tr>
                <td height="10" align="center" valign="middle">
                </td>
            </tr>
            <tr>
                <td align="center" valign="middle">
                    <uc1:wucNewsToolbar ID="objNewsToolbar" runat="server" NewsToolbarStatus="nomal"
                        NewsEditorialStatus="COMPOSE" FunctionName="Biên soạn tin tức" OnNewsToolbarButtonClicked="objNewsToolbar_NewsToolbarButtonClicked" />
                </td>
            </tr>
            <tr>
                <td height="40" align="center" valign="middle">
                    <asp:Label ID="lblMessage" runat="server" ForeColor="Red" Font-Bold="True">LỰA CHỌN TÁC VỤ TRÊN THANH CÔNG CỤ</asp:Label>
                    <!-- UPdATE PROGRESS -->
                    <asp:UpdateProgress runat="server" ID="ajaxupUpdateProgresss">
                        <ProgressTemplate>
                            <table cellpadding="0" width="300" cellspacing="0" border="0" height="30px">
                                <tr>
                                    <td align="right" valign="middle">
                                        Đang xử lý dữ liệu&nbsp;&nbsp;
                                    </td>
                                    <td align="left" valign="middle">
                                        <asp:Image ID="imgLoading" runat="server" ImageUrl="~/Images/loadingimages/LoadingProgressBar.gif" />
                                    </td>
                                </tr>
                            </table>
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <!-- UPdATE PROGRESS -->
                </td>
            </tr>
            <!-- LIST ================================================================== -->
            <tr>
                <td align="center" valign="middle">
                    <uc2:wucNewsList ID="ListDataControl" runat="server" Visible="true" OnRadGridItemsSelected="ListDataControl_RadGridItemsSelected"
                        OnRadGridItemEdited="ListDataControl_RadGridItemEdited" OnRadGridItemsDeleted="ListDataControl_RadGridItemsDeleted"
                        OnRadGridItemsSubmitted="ListDataControl_RadGridItemsSubmitted">
                    </uc2:wucNewsList>
                </td>
            </tr>
            <!-- LIST ================================================================== -->
            <!-- DETAIL ================================================================== -->
            <tr>
                <td align="center" valign="middle">
                    <uc3:wucNewsDetail ID="DetailDataControl" runat="server" Visible="false" />
                </td>
            </tr>
            <!-- DETAIL ================================================================== -->
        </table>
        <!--PREVIEW POPUP==============================================================-->
        <telerik:RadWindowManager Visible="true" ID="rwdmanager" Skin="Vista" VisibleOnPageLoad="false"
            runat="server">
            <Windows>
                <telerik:RadWindow ID="previewradwindow" runat="server" Skin="Vista" Width="750px"
                    Height="500px" Title="Xem bản tin">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        <!--PREVIEW POPUP==============================================================-->
    </ContentTemplate>
</asp:UpdatePanel>
